﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace DeepHash.Document.Format
{
    /// <summary>
    /// Interface to support different formats of Verificaton Document  
    /// </summary>
    public interface IDocumentFormatter
    {
        /// <summary>
        /// Saves the document to given stream
        /// </summary>
        /// <param name="stream"></param>
        /// <param name="doc"></param>
        /// <returns></returns>
        bool SaveDocument(System.IO.Stream stream, VerificationDocument doc);
        
        /// <summary>
        /// Reads and loads the document from a given stream
        /// </summary>
        /// <param name="stream"></param>
        /// <returns></returns>
        VerificationDocument LoadDocument(System.IO.Stream stream);
    }
}
